/**
 * <copyright>
 * </copyright>
 *
 * $Id$
 */
package EA_Model.IEC61970.OperationalLimits.impl;

import EA_Model.IEC61970.Contingency.ContingencyPackage;

import EA_Model.IEC61970.Contingency.impl.ContingencyPackageImpl;

import EA_Model.IEC61970.ControlArea.ControlAreaPackage;

import EA_Model.IEC61970.ControlArea.impl.ControlAreaPackageImpl;

import EA_Model.IEC61970.Core.CorePackage;

import EA_Model.IEC61970.Core.impl.CorePackageImpl;

import EA_Model.IEC61970.Domain.DomainPackage;

import EA_Model.IEC61970.Domain.impl.DomainPackageImpl;

import EA_Model.IEC61970.Equivalents.EquivalentsPackage;

import EA_Model.IEC61970.Equivalents.impl.EquivalentsPackageImpl;

import EA_Model.IEC61970.Generation.GenerationDynamics.GenerationDynamicsPackage;

import EA_Model.IEC61970.Generation.GenerationDynamics.impl.GenerationDynamicsPackageImpl;

import EA_Model.IEC61970.Generation.Production.ProductionPackage;

import EA_Model.IEC61970.Generation.Production.impl.ProductionPackageImpl;

import EA_Model.IEC61970.IEC61970Package;

import EA_Model.IEC61970.Informative.InfCore.InfCorePackage;

import EA_Model.IEC61970.Informative.InfCore.impl.InfCorePackageImpl;

import EA_Model.IEC61970.LoadModel.LoadModelPackage;

import EA_Model.IEC61970.LoadModel.impl.LoadModelPackageImpl;

import EA_Model.IEC61970.Meas.MeasPackage;

import EA_Model.IEC61970.Meas.impl.MeasPackageImpl;

import EA_Model.IEC61970.OperationalLimits.ActivePowerLimit;
import EA_Model.IEC61970.OperationalLimits.ApparentPowerLimit;
import EA_Model.IEC61970.OperationalLimits.BranchGroup;
import EA_Model.IEC61970.OperationalLimits.BranchGroupTerminal;
import EA_Model.IEC61970.OperationalLimits.CurrentLimit;
import EA_Model.IEC61970.OperationalLimits.OperationalLimit;
import EA_Model.IEC61970.OperationalLimits.OperationalLimitDirectionKind;
import EA_Model.IEC61970.OperationalLimits.OperationalLimitSet;
import EA_Model.IEC61970.OperationalLimits.OperationalLimitType;
import EA_Model.IEC61970.OperationalLimits.OperationalLimitsFactory;
import EA_Model.IEC61970.OperationalLimits.OperationalLimitsPackage;
import EA_Model.IEC61970.OperationalLimits.VoltageLimit;

import EA_Model.IEC61970.Outage.OutagePackage;

import EA_Model.IEC61970.Outage.impl.OutagePackageImpl;

import EA_Model.IEC61970.Protection.ProtectionPackage;

import EA_Model.IEC61970.Protection.impl.ProtectionPackageImpl;

import EA_Model.IEC61970.SCADA.SCADAPackage;

import EA_Model.IEC61970.SCADA.impl.SCADAPackageImpl;

import EA_Model.IEC61970.StateVariables.StateVariablesPackage;

import EA_Model.IEC61970.StateVariables.impl.StateVariablesPackageImpl;

import EA_Model.IEC61970.Topology.TopologyPackage;

import EA_Model.IEC61970.Topology.impl.TopologyPackageImpl;

import EA_Model.IEC61970.Wires.WiresPackage;

import EA_Model.IEC61970.Wires.impl.WiresPackageImpl;

import EA_Model.IEC61970.impl.IEC61970PackageImpl;

import org.eclipse.emf.ecore.EAttribute;
import org.eclipse.emf.ecore.EClass;
import org.eclipse.emf.ecore.EEnum;
import org.eclipse.emf.ecore.EPackage;
import org.eclipse.emf.ecore.EReference;

import org.eclipse.emf.ecore.impl.EPackageImpl;

/**
 * <!-- begin-user-doc -->
 * An implementation of the model <b>Package</b>.
 * <!-- end-user-doc -->
 * @generated
 */
public class OperationalLimitsPackageImpl extends EPackageImpl implements OperationalLimitsPackage {
	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private EClass activePowerLimitEClass = null;

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private EClass operationalLimitEClass = null;

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private EClass apparentPowerLimitEClass = null;

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private EClass branchGroupEClass = null;

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private EClass branchGroupTerminalEClass = null;

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private EClass currentLimitEClass = null;

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private EClass operationalLimitSetEClass = null;

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private EClass operationalLimitTypeEClass = null;

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private EClass voltageLimitEClass = null;

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private EEnum operationalLimitDirectionKindEEnum = null;

	/**
	 * Creates an instance of the model <b>Package</b>, registered with
	 * {@link org.eclipse.emf.ecore.EPackage.Registry EPackage.Registry} by the package
	 * package URI value.
	 * <p>Note: the correct way to create the package is via the static
	 * factory method {@link #init init()}, which also performs
	 * initialization of the package, or returns the registered package,
	 * if one already exists.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see org.eclipse.emf.ecore.EPackage.Registry
	 * @see EA_Model.IEC61970.OperationalLimits.OperationalLimitsPackage#eNS_URI
	 * @see #init()
	 * @generated
	 */
	private OperationalLimitsPackageImpl() {
		super(eNS_URI, OperationalLimitsFactory.eINSTANCE);
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private static boolean isInited = false;

	/**
	 * Creates, registers, and initializes the <b>Package</b> for this model, and for any others upon which it depends.
	 * 
	 * <p>This method is used to initialize {@link OperationalLimitsPackage#eINSTANCE} when that field is accessed.
	 * Clients should not invoke it directly. Instead, they should simply access that field to obtain the package.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #eNS_URI
	 * @see #createPackageContents()
	 * @see #initializePackageContents()
	 * @generated
	 */
	public static OperationalLimitsPackage init() {
		if (isInited) return (OperationalLimitsPackage)EPackage.Registry.INSTANCE.getEPackage(OperationalLimitsPackage.eNS_URI);

		// Obtain or create and register package
		OperationalLimitsPackageImpl theOperationalLimitsPackage = (OperationalLimitsPackageImpl)(EPackage.Registry.INSTANCE.get(eNS_URI) instanceof OperationalLimitsPackageImpl ? EPackage.Registry.INSTANCE.get(eNS_URI) : new OperationalLimitsPackageImpl());

		isInited = true;

		// Obtain or create and register interdependencies
		IEC61970PackageImpl theIEC61970Package = (IEC61970PackageImpl)(EPackage.Registry.INSTANCE.getEPackage(IEC61970Package.eNS_URI) instanceof IEC61970PackageImpl ? EPackage.Registry.INSTANCE.getEPackage(IEC61970Package.eNS_URI) : IEC61970Package.eINSTANCE);
		DomainPackageImpl theDomainPackage = (DomainPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(DomainPackage.eNS_URI) instanceof DomainPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(DomainPackage.eNS_URI) : DomainPackage.eINSTANCE);
		InfCorePackageImpl theInfCorePackage = (InfCorePackageImpl)(EPackage.Registry.INSTANCE.getEPackage(InfCorePackage.eNS_URI) instanceof InfCorePackageImpl ? EPackage.Registry.INSTANCE.getEPackage(InfCorePackage.eNS_URI) : InfCorePackage.eINSTANCE);
		CorePackageImpl theCorePackage = (CorePackageImpl)(EPackage.Registry.INSTANCE.getEPackage(CorePackage.eNS_URI) instanceof CorePackageImpl ? EPackage.Registry.INSTANCE.getEPackage(CorePackage.eNS_URI) : CorePackage.eINSTANCE);
		TopologyPackageImpl theTopologyPackage = (TopologyPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(TopologyPackage.eNS_URI) instanceof TopologyPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(TopologyPackage.eNS_URI) : TopologyPackage.eINSTANCE);
		WiresPackageImpl theWiresPackage = (WiresPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(WiresPackage.eNS_URI) instanceof WiresPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(WiresPackage.eNS_URI) : WiresPackage.eINSTANCE);
		LoadModelPackageImpl theLoadModelPackage = (LoadModelPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(LoadModelPackage.eNS_URI) instanceof LoadModelPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(LoadModelPackage.eNS_URI) : LoadModelPackage.eINSTANCE);
		GenerationDynamicsPackageImpl theGenerationDynamicsPackage = (GenerationDynamicsPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(GenerationDynamicsPackage.eNS_URI) instanceof GenerationDynamicsPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(GenerationDynamicsPackage.eNS_URI) : GenerationDynamicsPackage.eINSTANCE);
		ProductionPackageImpl theProductionPackage = (ProductionPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(ProductionPackage.eNS_URI) instanceof ProductionPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(ProductionPackage.eNS_URI) : ProductionPackage.eINSTANCE);
		OutagePackageImpl theOutagePackage = (OutagePackageImpl)(EPackage.Registry.INSTANCE.getEPackage(OutagePackage.eNS_URI) instanceof OutagePackageImpl ? EPackage.Registry.INSTANCE.getEPackage(OutagePackage.eNS_URI) : OutagePackage.eINSTANCE);
		ProtectionPackageImpl theProtectionPackage = (ProtectionPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(ProtectionPackage.eNS_URI) instanceof ProtectionPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(ProtectionPackage.eNS_URI) : ProtectionPackage.eINSTANCE);
		EquivalentsPackageImpl theEquivalentsPackage = (EquivalentsPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(EquivalentsPackage.eNS_URI) instanceof EquivalentsPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(EquivalentsPackage.eNS_URI) : EquivalentsPackage.eINSTANCE);
		MeasPackageImpl theMeasPackage = (MeasPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(MeasPackage.eNS_URI) instanceof MeasPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(MeasPackage.eNS_URI) : MeasPackage.eINSTANCE);
		SCADAPackageImpl theSCADAPackage = (SCADAPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(SCADAPackage.eNS_URI) instanceof SCADAPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(SCADAPackage.eNS_URI) : SCADAPackage.eINSTANCE);
		ControlAreaPackageImpl theControlAreaPackage = (ControlAreaPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(ControlAreaPackage.eNS_URI) instanceof ControlAreaPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(ControlAreaPackage.eNS_URI) : ControlAreaPackage.eINSTANCE);
		ContingencyPackageImpl theContingencyPackage = (ContingencyPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(ContingencyPackage.eNS_URI) instanceof ContingencyPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(ContingencyPackage.eNS_URI) : ContingencyPackage.eINSTANCE);
		StateVariablesPackageImpl theStateVariablesPackage = (StateVariablesPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(StateVariablesPackage.eNS_URI) instanceof StateVariablesPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(StateVariablesPackage.eNS_URI) : StateVariablesPackage.eINSTANCE);

		// Create package meta-data objects
		theOperationalLimitsPackage.createPackageContents();
		theIEC61970Package.createPackageContents();
		theDomainPackage.createPackageContents();
		theInfCorePackage.createPackageContents();
		theCorePackage.createPackageContents();
		theTopologyPackage.createPackageContents();
		theWiresPackage.createPackageContents();
		theLoadModelPackage.createPackageContents();
		theGenerationDynamicsPackage.createPackageContents();
		theProductionPackage.createPackageContents();
		theOutagePackage.createPackageContents();
		theProtectionPackage.createPackageContents();
		theEquivalentsPackage.createPackageContents();
		theMeasPackage.createPackageContents();
		theSCADAPackage.createPackageContents();
		theControlAreaPackage.createPackageContents();
		theContingencyPackage.createPackageContents();
		theStateVariablesPackage.createPackageContents();

		// Initialize created meta-data
		theOperationalLimitsPackage.initializePackageContents();
		theIEC61970Package.initializePackageContents();
		theDomainPackage.initializePackageContents();
		theInfCorePackage.initializePackageContents();
		theCorePackage.initializePackageContents();
		theTopologyPackage.initializePackageContents();
		theWiresPackage.initializePackageContents();
		theLoadModelPackage.initializePackageContents();
		theGenerationDynamicsPackage.initializePackageContents();
		theProductionPackage.initializePackageContents();
		theOutagePackage.initializePackageContents();
		theProtectionPackage.initializePackageContents();
		theEquivalentsPackage.initializePackageContents();
		theMeasPackage.initializePackageContents();
		theSCADAPackage.initializePackageContents();
		theControlAreaPackage.initializePackageContents();
		theContingencyPackage.initializePackageContents();
		theStateVariablesPackage.initializePackageContents();

		// Mark meta-data to indicate it can't be changed
		theOperationalLimitsPackage.freeze();

  
		// Update the registry and return the package
		EPackage.Registry.INSTANCE.put(OperationalLimitsPackage.eNS_URI, theOperationalLimitsPackage);
		return theOperationalLimitsPackage;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public EClass getActivePowerLimit() {
		return activePowerLimitEClass;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public EReference getActivePowerLimit_Value() {
		return (EReference)activePowerLimitEClass.getEStructuralFeatures().get(0);
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public EClass getOperationalLimit() {
		return operationalLimitEClass;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public EReference getOperationalLimit_Type() {
		return (EReference)operationalLimitEClass.getEStructuralFeatures().get(0);
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public EClass getApparentPowerLimit() {
		return apparentPowerLimitEClass;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public EReference getApparentPowerLimit_Value() {
		return (EReference)apparentPowerLimitEClass.getEStructuralFeatures().get(0);
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public EClass getBranchGroup() {
		return branchGroupEClass;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public EReference getBranchGroup_MaximumActivePower() {
		return (EReference)branchGroupEClass.getEStructuralFeatures().get(0);
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public EReference getBranchGroup_MaximumReactivePower() {
		return (EReference)branchGroupEClass.getEStructuralFeatures().get(1);
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public EReference getBranchGroup_MinimumActivePower() {
		return (EReference)branchGroupEClass.getEStructuralFeatures().get(2);
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public EReference getBranchGroup_MinimumReactivePower() {
		return (EReference)branchGroupEClass.getEStructuralFeatures().get(3);
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public EReference getBranchGroup_MonitorActivePower() {
		return (EReference)branchGroupEClass.getEStructuralFeatures().get(4);
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public EReference getBranchGroup_MonitorReactivePower() {
		return (EReference)branchGroupEClass.getEStructuralFeatures().get(5);
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public EClass getBranchGroupTerminal() {
		return branchGroupTerminalEClass;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public EReference getBranchGroupTerminal_PositiveFlowIn() {
		return (EReference)branchGroupTerminalEClass.getEStructuralFeatures().get(0);
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public EClass getCurrentLimit() {
		return currentLimitEClass;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public EReference getCurrentLimit_Value() {
		return (EReference)currentLimitEClass.getEStructuralFeatures().get(0);
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public EClass getOperationalLimitSet() {
		return operationalLimitSetEClass;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public EClass getOperationalLimitType() {
		return operationalLimitTypeEClass;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public EReference getOperationalLimitType_AcceptableDuration() {
		return (EReference)operationalLimitTypeEClass.getEStructuralFeatures().get(0);
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public EAttribute getOperationalLimitType_Direction() {
		return (EAttribute)operationalLimitTypeEClass.getEStructuralFeatures().get(1);
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public EClass getVoltageLimit() {
		return voltageLimitEClass;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public EReference getVoltageLimit_Value() {
		return (EReference)voltageLimitEClass.getEStructuralFeatures().get(0);
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public EEnum getOperationalLimitDirectionKind() {
		return operationalLimitDirectionKindEEnum;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public OperationalLimitsFactory getOperationalLimitsFactory() {
		return (OperationalLimitsFactory)getEFactoryInstance();
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private boolean isCreated = false;

	/**
	 * Creates the meta-model objects for the package.  This method is
	 * guarded to have no affect on any invocation but its first.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public void createPackageContents() {
		if (isCreated) return;
		isCreated = true;

		// Create classes and their features
		activePowerLimitEClass = createEClass(ACTIVE_POWER_LIMIT);
		createEReference(activePowerLimitEClass, ACTIVE_POWER_LIMIT__VALUE);

		operationalLimitEClass = createEClass(OPERATIONAL_LIMIT);
		createEReference(operationalLimitEClass, OPERATIONAL_LIMIT__TYPE);

		apparentPowerLimitEClass = createEClass(APPARENT_POWER_LIMIT);
		createEReference(apparentPowerLimitEClass, APPARENT_POWER_LIMIT__VALUE);

		branchGroupEClass = createEClass(BRANCH_GROUP);
		createEReference(branchGroupEClass, BRANCH_GROUP__MAXIMUM_ACTIVE_POWER);
		createEReference(branchGroupEClass, BRANCH_GROUP__MAXIMUM_REACTIVE_POWER);
		createEReference(branchGroupEClass, BRANCH_GROUP__MINIMUM_ACTIVE_POWER);
		createEReference(branchGroupEClass, BRANCH_GROUP__MINIMUM_REACTIVE_POWER);
		createEReference(branchGroupEClass, BRANCH_GROUP__MONITOR_ACTIVE_POWER);
		createEReference(branchGroupEClass, BRANCH_GROUP__MONITOR_REACTIVE_POWER);

		branchGroupTerminalEClass = createEClass(BRANCH_GROUP_TERMINAL);
		createEReference(branchGroupTerminalEClass, BRANCH_GROUP_TERMINAL__POSITIVE_FLOW_IN);

		currentLimitEClass = createEClass(CURRENT_LIMIT);
		createEReference(currentLimitEClass, CURRENT_LIMIT__VALUE);

		operationalLimitSetEClass = createEClass(OPERATIONAL_LIMIT_SET);

		operationalLimitTypeEClass = createEClass(OPERATIONAL_LIMIT_TYPE);
		createEReference(operationalLimitTypeEClass, OPERATIONAL_LIMIT_TYPE__ACCEPTABLE_DURATION);
		createEAttribute(operationalLimitTypeEClass, OPERATIONAL_LIMIT_TYPE__DIRECTION);

		voltageLimitEClass = createEClass(VOLTAGE_LIMIT);
		createEReference(voltageLimitEClass, VOLTAGE_LIMIT__VALUE);

		// Create enums
		operationalLimitDirectionKindEEnum = createEEnum(OPERATIONAL_LIMIT_DIRECTION_KIND);
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private boolean isInitialized = false;

	/**
	 * Complete the initialization of the package and its meta-model.  This
	 * method is guarded to have no affect on any invocation but its first.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public void initializePackageContents() {
		if (isInitialized) return;
		isInitialized = true;

		// Initialize package
		setName(eNAME);
		setNsPrefix(eNS_PREFIX);
		setNsURI(eNS_URI);

		// Obtain other dependent packages
		DomainPackage theDomainPackage = (DomainPackage)EPackage.Registry.INSTANCE.getEPackage(DomainPackage.eNS_URI);
		CorePackage theCorePackage = (CorePackage)EPackage.Registry.INSTANCE.getEPackage(CorePackage.eNS_URI);

		// Create type parameters

		// Set bounds for type parameters

		// Add supertypes to classes
		activePowerLimitEClass.getESuperTypes().add(this.getOperationalLimit());
		operationalLimitEClass.getESuperTypes().add(theCorePackage.getIdentifiedObject());
		apparentPowerLimitEClass.getESuperTypes().add(this.getOperationalLimit());
		branchGroupEClass.getESuperTypes().add(theCorePackage.getIdentifiedObject());
		currentLimitEClass.getESuperTypes().add(this.getOperationalLimit());
		operationalLimitSetEClass.getESuperTypes().add(theCorePackage.getIdentifiedObject());
		voltageLimitEClass.getESuperTypes().add(this.getOperationalLimit());

		// Initialize classes and features; add operations and parameters
		initEClass(activePowerLimitEClass, ActivePowerLimit.class, "ActivePowerLimit", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
		initEReference(getActivePowerLimit_Value(), theDomainPackage.getActivePower(), null, "value", null, 0, 1, ActivePowerLimit.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);

		initEClass(operationalLimitEClass, OperationalLimit.class, "OperationalLimit", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
		initEReference(getOperationalLimit_Type(), theDomainPackage.getString(), null, "type", null, 0, 1, OperationalLimit.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);

		initEClass(apparentPowerLimitEClass, ApparentPowerLimit.class, "ApparentPowerLimit", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
		initEReference(getApparentPowerLimit_Value(), theDomainPackage.getApparentPower(), null, "value", null, 0, 1, ApparentPowerLimit.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);

		initEClass(branchGroupEClass, BranchGroup.class, "BranchGroup", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
		initEReference(getBranchGroup_MaximumActivePower(), theDomainPackage.getActivePower(), null, "maximumActivePower", null, 0, 1, BranchGroup.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);
		initEReference(getBranchGroup_MaximumReactivePower(), theDomainPackage.getReactivePower(), null, "maximumReactivePower", null, 0, 1, BranchGroup.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);
		initEReference(getBranchGroup_MinimumActivePower(), theDomainPackage.getActivePower(), null, "minimumActivePower", null, 0, 1, BranchGroup.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);
		initEReference(getBranchGroup_MinimumReactivePower(), theDomainPackage.getReactivePower(), null, "minimumReactivePower", null, 0, 1, BranchGroup.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);
		initEReference(getBranchGroup_MonitorActivePower(), theDomainPackage.getBoolean(), null, "monitorActivePower", null, 0, 1, BranchGroup.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);
		initEReference(getBranchGroup_MonitorReactivePower(), theDomainPackage.getBoolean(), null, "monitorReactivePower", null, 0, 1, BranchGroup.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);

		initEClass(branchGroupTerminalEClass, BranchGroupTerminal.class, "BranchGroupTerminal", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
		initEReference(getBranchGroupTerminal_PositiveFlowIn(), theDomainPackage.getBoolean(), null, "positiveFlowIn", null, 0, 1, BranchGroupTerminal.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);

		initEClass(currentLimitEClass, CurrentLimit.class, "CurrentLimit", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
		initEReference(getCurrentLimit_Value(), theDomainPackage.getCurrentFlow(), null, "value", null, 0, 1, CurrentLimit.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);

		initEClass(operationalLimitSetEClass, OperationalLimitSet.class, "OperationalLimitSet", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);

		initEClass(operationalLimitTypeEClass, OperationalLimitType.class, "OperationalLimitType", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
		initEReference(getOperationalLimitType_AcceptableDuration(), theDomainPackage.getSeconds(), null, "acceptableDuration", null, 0, 1, OperationalLimitType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);
		initEAttribute(getOperationalLimitType_Direction(), this.getOperationalLimitDirectionKind(), "direction", null, 0, 1, OperationalLimitType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);

		initEClass(voltageLimitEClass, VoltageLimit.class, "VoltageLimit", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
		initEReference(getVoltageLimit_Value(), theDomainPackage.getVoltage(), null, "value", null, 0, 1, VoltageLimit.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);

		// Initialize enums and add enum literals
		initEEnum(operationalLimitDirectionKindEEnum, OperationalLimitDirectionKind.class, "OperationalLimitDirectionKind");
		addEEnumLiteral(operationalLimitDirectionKindEEnum, OperationalLimitDirectionKind.HIGH);
		addEEnumLiteral(operationalLimitDirectionKindEEnum, OperationalLimitDirectionKind.LOW);
		addEEnumLiteral(operationalLimitDirectionKindEEnum, OperationalLimitDirectionKind.ABSOLUTE_VALUE);
	}

} //OperationalLimitsPackageImpl
